package com.bbs.service;


import java.util.List;

import com.bbs.po.Topic;

public interface TopicService {
   
	public int getTopicCount(int forumid);
	
	public Topic getNewTopic(int forumid);
	
	public List<Topic> getAllTopic(int forumid,int pageNum,int pageSize);
	
	public int saveTopic(Topic topic);
	
	public Topic getTopicById(Integer topicid);
	
	public List<Topic> allTopic(int pageNum,int pageSize);
	
	public List<Topic> search(String title);
	
	public int delete(int id);
}
